Skip to content

Update dependency typescript to v6#52

Merged
bastianeicher merged 2 commits intomasterfrom
renovate/major-dev-dependencies
Apr 1, 2026
Merged

Update dependency typescript to v6#52
bastianeicher merged 2 commits intomasterfrom
renovate/major-dev-dependencies

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Mar 23, 2026

This PR contains the following updates:

Package Change Age Confidence
typescript (source) 5.9.36.0.2 age confidence

Release Notes

microsoft/TypeScript (typescript)

v6.0.2

Compare Source


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@bastianeicher
Copy link
Copy Markdown
Member

@copilot Figure out why updating TypeScript from 5.x to 6.x in this PR breaks the build and fix it.

Copy link
Copy Markdown

Copilot AI commented Apr 1, 2026

@copilot Figure out why updating TypeScript from 5.x to 6.x in this PR breaks the build and fix it.

TypeScript 6 no longer auto-includes @types/jest global types, causing every test file to error with "Cannot find name 'beforeEach'/'test'/'expect'".

Fixed in commit 71a2c91 by:

  1. Adding tsconfig.test.json — extends the main config but explicitly sets "types": ["jest", "node"] and scopes include to **/*.test.ts
  2. Updating jest.config.js to pass tsconfig: "tsconfig.test.json" to ts-jest

The production build (tsc) is unaffected and all 58 tests now pass.

@bastianeicher
Copy link
Copy Markdown
Member

@copilot The build is still failing:

npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: ts-jest@29.4.6
npm error Found: typescript@6.0.2
npm error node_modules/typescript
npm error   dev typescript@"6.0.2" from the root project
npm error   peer typescript@"5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x || 5.5.x || 5.6.x || 5.7.x || 5.8.x || 5.9.x || 6.0.x" from typedoc@0.28.18
npm error   node_modules/typedoc
npm error     dev typedoc@"0.28.18" from the root project
npm error
npm error Could not resolve dependency:
npm error peer typescript@">=4.3 <6" from ts-jest@29.4.6
npm error node_modules/ts-jest
npm error   dev ts-jest@"29.4.6" from the root project
npm error
npm error Conflicting peer dependency: typescript@5.9.3
npm error node_modules/typescript
npm error   peer typescript@">=4.3 <6" from ts-jest@29.4.6
npm error   node_modules/ts-jest
npm error     dev ts-jest@"29.4.6" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.

Copy link
Copy Markdown

Copilot AI commented Apr 1, 2026

@copilot The build is still failing:

...

Fixed in commit 45df436. ts-jest@29.4.6 had a peer dependency of typescript >=4.3 <6, so it rejected TypeScript 6. Updated to ts-jest@29.4.8, which expanded the range to >=4.3 <7. The npm install now resolves cleanly and all 58 tests pass.

@renovate
Copy link
Copy Markdown
Contributor Author

renovate bot commented Apr 1, 2026

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@bastianeicher bastianeicher force-pushed the renovate/major-dev-dependencies branch 2 times, most recently from 23bfec7 to 7e86453 Compare April 1, 2026 15:28
@renovate renovate bot force-pushed the renovate/major-dev-dependencies branch from 7e86453 to d029ab4 Compare April 1, 2026 15:29
@bastianeicher bastianeicher merged commit 149729d into master Apr 1, 2026
2 checks passed
@bastianeicher bastianeicher deleted the renovate/major-dev-dependencies branch April 1, 2026 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants